<template>
    <div class='goodsDesc'>
       <div class="tiele">{{GoodDesc.title}}</div>
       <hr>
       <div class='content' v-html='GoodDesc.content'></div>
    </div>
</template>
<script>
export default {
    data(){
        return {
            GoodDesc:[]
        }
    },
    created(){
        this.getGoodDesc()
    },
    methods:{
        getGoodDesc(){
            this.$http.get('api/goods/getdesc/'+this.$route.params.id).then(res=>{
                // console.log(res)
                if(res.body.status == 0){
                    this.GoodDesc = res.body.message[0]
                    console.log(this.GoodDesc)
                }
            })
        }
    }
}
</script>


<style lang="scss" scoped>
.goodsDesc{
    padding: 0 10px;
    .tiele{
        text-align: center;
        margin-top: 8px;
        
    }
}
    
    
</style>

<style>
    img.gomeImgLoad{
        width: 100%;
    }
</style>
